﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="historyexpenseByStores.aspx.cs" Inherits="historyexpenseByStores" EnableViewState="false" %>
<!DOCTYPE html>
<html>
<head>
    <title>门店消费记录</title>
</head>
<body>
    <div>
        <section data-role="page" id="historyexpenseByStoresDetail_main">
            <div id="historyexpenseByStoresDetail_content">
                    <div style="text-align:center;font-size:12px;display:none;" runat="server" id="msg"><img src="images/history-consumption.png" style="position:relative;top:8px;"/><span id="msgText">暂无消费信息</span></div>
                    <asp:Repeater runat="server" ID="rpthistoryexpenseByStoresDetail">
                        <ItemTemplate>
                            <!--开始-->
                            <div class="item">
                            <!--left-->
                                <div class="item-left">
                                    <div class="left-left">
                                        <span><%#Convert.ToDateTime(Eval("OrderCreateTime")).ToString("yyyy-MM-dd")%></span>
                                        <span><%#Convert.ToDateTime(Eval("OrderCreateTime")).ToString("HH:mm")%></span>
                                    </div>
                                    <div class="left-right">
                                        <span></span>
                                        <div></div>
                                    </div>
                                </div>
            
                                <!--right-->
                                <div class="item-right">
                                    <div class="right-main">
                                        <div class="sjx sjx-bottom"></div>
                                        <div class="sjx sjx-top"></div>
                                        <span>单号<span style="color:red;margin-left:10px;"><%#Eval("OrderAccount")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>消费总金额<span style="color:red;margin-left:10px;"><%#Convert.ToDecimal(Eval("OrderTotalMoney")).ToString("0.00")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>折后总金额<span style="color:red;margin-left:10px;"><%#Convert.ToDecimal(Eval("OrderDiscountMoney")).ToString("0.00")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <%#this.GetPayStr(Eval("OrderPayCard"), Eval("OrderPayCash"), Eval("OrderPayBink"), Eval("OrderPayCoupon"))%>
                                        <span>获得积分<span style="color:red;margin-left:10px;"><%#Convert.ToDecimal(Eval("OrderPoint"))%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>消费类型<span style="color:red;margin-left:10px;"><%#this.GetOrderType(Convert.ToInt32(Eval("OrderType")))%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <%#this.GetOrderDetail(Eval("OrderType"), Eval("OrderID"), Eval("OrderMemID"))%>
                                    </div>
                                </div>
                            </div>
                            <!--结束-->
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

            <script type="text/javascript">
                $(function () {
                    setTimeout("setHeight()", 1000);
                })

                function setHeight() {
                    $(".item-right").each(function (index, element) {
                        var h = $(this).height() + 10 + index * 5;
                        $(".left-right span").eq(index).height(h);
                        var offset = index * -5;
                        if (index != 0) {
                            $(".left-right span").eq(index).css({ "position": "relative", "top": offset + "px" });
                        }
                    });
                }
            </script>
            <footer data-role="footer" data-position="fixed" id="historyexpenseByStoresDetail_footer">
                <div data-role="navbar" id="nav-glyphish-example">
                    <ul>
                        <li><a href="#index" id="A1"><img src="images/business_site_btn.png" /><br/>商家网站</a></li>
                        <li><a href="#goodlist" id="A2" data-load="goodlist.aspx"><img src="images/Goods_Book_btn.png" /><br/>商品购买</a></li>
                        <li class="footer_active"><a href="#membershipcard" data-load="membershipcard.aspx" id="A3"><img src="images/03.png" /><br/>会员卡</a></li>
                        <li><a href="#giftlist" data-load="giftlist.aspx" id="A4" class="ui-btn-active"><img src="images/exchange_btn.png" /><br/>积分兑换</a></li>
                    </ul>
                </div>
            </footer>
        </section>
    </div>
</body>
</html>
